package com.bishe.psy.dao;

import com.bishe.psy.model.ArticleReply;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleReplyMapper {
    int insert(ArticleReply row);

    int insertSelective(ArticleReply row);

    ArticleReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleReply row);

    int updateByPrimaryKey(ArticleReply row);

    //查询学生回复该片文章的所有回复记录
    List<ArticleReply> selectStuAll(Long articleId);

    //查询学生回复该片文章的所有回复记录
    List<ArticleReply> selectConAll(Long articleId);

    //查询学生回复该片文章的所有回复记录
    List<ArticleReply> selectAdmAll(Long articleId);

}